home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / diskutil / blitz145.arc / BLITZ_HD.TXT < prev    next >
Encoding:
Text File  |  1992-12-13  |  18.3 KB  |  362 lines

  1.               Blitzschnell Hard Drive Defragmenter and Optimizer
  2.                            Version 1.44 Beta Release
  3.                       Programmed by Erin Matthew Monaco
  4.                                October 27, 1992
  5.  
  6.  
  7. Written in 100% assembly language Blitzschnell is compact and offers the speed
  8. not found in high level languages.  This program is SHAREware. If you like it
  9. I ask that you send a check or money order for $15 + $3 s/h to;
  10.  
  11. Mr. Erin Monaco
  12. 35244 Chestnut
  13. Wayne, MI  48184
  14.  
  15. Since this is a Beta release I would appreciate all comments or suggestions. 
  16. Please feel free to write or call me at (313)-485-2818.  My address on GEnie
  17. is E.MONACO.
  18.  
  19.  
  20. DISCLAIMER:  Neither the author nor Databasement assume any responsibility for
  21. loss or damage to hardware, software, or data as a result of the use or misuse
  22. of this product.
  23.  
  24. This program offers a unique visual perspective of your drives data. The
  25. program is designed primarily for hard drives.  While it can be used on other
  26. mediums providing it can identify the FAT format, it is not intended nor
  27. recommended that you use this program where physical copy protection is
  28. present. (ie, commercial games)  Acc's may be used in conjuction with this
  29. program, some you may find helpful are a calculator, disk utilities that give
  30. you the ability to copy, move or delete files, and EdHak (by Clear Thinking).
  31. A word of caution however, since Blitzschnell stores the FAT and all directory
  32. sectors in memory, if you make a change to the device you have currently
  33. mapped you will have to refresh Blitz's buffers.  You can do this by selecting
  34. the logical drive again, if all goes well you will have to "Map" as well.  If
  35. you have any problems running the program, try disabling auto programs and
  36. acc's one by one till you track down the problem.
  37.  
  38. This manual is intended to give a brief overview of the commands along with
  39. some useful information as well as an update history.
  40.  
  41. Some terms that you will frequently run across are as follows;
  42.  
  43. FAT- Stands for file allocation table. The ST maintains 2 FAT's in the event
  44. that one becomes scrambled or damaged.  The purpose of the FAT is to provide
  45. the OS with a means to determine which clusters are used, bad or free, and to
  46. which clusters belong to the same file.
  47.  
  48. CLUSTER- A cluster consists of two sectors grouped together. Each cluster has
  49. its own entry in the FAT. The reason for this is to save drive space, if each
  50. sector had its own entry in the FAT each FAT would be twice as big!
  51.  
  52. Sector- A sector is a logical grouping of 512 bytes.  Sectors enable a drives
  53. data to be accessed more quickly and in any order.
  54.  
  55.  
  56. MENU COMMANDS:
  57.  
  58. "About Program" - Brings up a credit dialog.
  59. "Select" - Allows you to select a new drive to work on.
  60. "Map" - Visually maps drive to work window.
  61. "Toggle Fat" - Allows you to switch between the two FAT's.
  62. "Info" - displays info from boot sector and bios parameter block.
  63. "Trace" - allows selection of single files.
  64. "Quit" - exits program and returns you to the desktop.
  65. "Move" - allows selected "highlighted" clusters to be moved.
  66. "Reserve" - allows you to mark clusters so the OS won't use them.
  67. "Free" - allows you to free clusters entries.
  68. "Zero" - allows you to zero actual cluster contents.
  69. "Warnings" - Can turn most warning alerts on or off.
  70. "Short View" - Toggles between Blitz's two viewing modes.
  71.  
  72. Most menu items have keyboard equivalents. "^" means to hold down the control
  73. key while pressing the command key.  These commands are not available from the
  74. menu;
  75. ^C - will compare both FAT's and check for illegal values.
  76. (These last three commands are disabled in the unregistered version!)
  77. ^H - will optimize all the directories of a partition or disk.
  78. ^K - will consolidate all used clusters together (with no defragmenting).
  79. ^D - will defragment your partition or disk.
  80.  
  81. WINDOW INFO LINES:
  82.  
  83. The drive currently buffered will be displayed in the windows title line.
  84. The info line will display number of clusters that are, Used, Free, Reserved,
  85. Bad, first cluster at top of work window and number of selected "highlighted"
  86. clusters. Once you have "Map"'ed a drive the work window should fill up with
  87. boxes that contain either single letters or up to three. Each box represents
  88. a cluster. Cluster numbering begins at two since the OS uses the clusters
  89. zero and one for format. Clicking on a cluster with the right mouse button
  90. will display a new info line containing the name of the file (if any) its
  91. first cluster, the cluster your currently on, and the next cluster in the file
  92. chain. If the next cluster is "EOF" that means your at the last cluster of
  93. that file. Clicking on a cluster with the left mouse button will select or
  94. deselect the cluster. You can select/deselect multiple clusters by keeping
  95. the button pressed down and moving the mouse over the clusters. Once you
  96. release the button the info line will be updated showing any changes in the
  97. number of clusters selected. When "Move"-ing clusters the info line will
  98. again change asking you to select a destination cluster or cancel. Move will
  99. overwrite all destination clusters! You must be careful not to overwrite parts
  100. of any other file.
  101.  
  102. CLUSTER SYMBOLS:
  103.  
  104. Once a drive has been mapped, boxes will fill the work window, each box
  105. represents a cluster of your drive. "*" means the OS has marked this
  106. cluster as damaged. "Delta" (a triangle) means that either the OS forgot to
  107. free all the clusters of a deleted file, some mishap caused the FAT to be
  108. corrupted or somehow a file got scrambled up and these may be parts of it. 
  109. A blank box indicates that the cluster does not belong to any file present,
  110. not necessarily that it contains no data. In the short viewing mode
  111. (default) "X" simply means the cluster belongs to a file, while in the
  112. extended mode the boxes will be filled with three letters, an combinations
  113. such as "AAA" will all belong to the same file.
  114.  
  115. WORK WINDOW:
  116.  
  117. Provides a powerful but intuitive means to defragment/optimize your drives.
  118. Clusters are represented by boxes which may or may not contain text/symbols.
  119. You have a variety of ways to select clusters at your disposal. To select a
  120. single cluster just left click on the cluster. To select a group you may hold
  121. the left button down as you move the mouse from cluster to cluster, whether or
  122. not a cluster is selected depends upon whether or not the first cluster you
  123. touch was selected or not. You may also select all of a files clusters by
  124. using the "Trace option". The last method is the block method.  Hold down the
  125. control key as you left click on the first cluster you want selected or
  126. deselected then hold down the control key again as you click on the last
  127. cluster. Again whether or not the block is selected or deselected depends on
  128. the first cluster of the block, if you are selecting the first cluster the
  129. whole block will be selected, otherwise the block will be deselected.
  130.  
  131. VERTICAL SCROLL BAR AND ARROWS:
  132.  
  133. The vertical scroll bar can be used to move arbitrary distances through
  134. clusters. Dragging it you can move to any valid cluster. Clicking on it
  135. will page up or down depending on location and clusters available. Clicking
  136. up and down arrows moves the clusters down or up a line respectively.
  137.  
  138. REVISED FILE SELECTOR:
  139.  
  140. The file selector (brought up when you select "Trace") can display hidden
  141. and system files (no limit). The window title will display the root
  142. directory or a parent folder (Only) and it will be updated accordingly. To
  143. move back up a directory chain to the root click anywhere on the window
  144. title. Blitzschnell treats folders like files, they can be traced by
  145. clicking on the folder (which makes it current) then without selecting a
  146. file from the folder click on ok, it will then trace the folder. Drives
  147. can not be changed from the file selector, it just lets you know which
  148. drive you are working on. (This is also displayed in the window title of
  149. the work window). All selected clusters will be cleared, even if you choose
  150. cancel so a newly traced file's clusters will be the ONLY clusters
  151. selected/highlighted. You can prevent "Trace" from clearing previously
  152. selected clusters by holding the alternate key as you exit the selector,
  153. either by clicking ok, cancel, or double clicking on a file.
  154.  
  155. INFO DISPLAY:
  156.  
  157. "Info" displays information from your bios parameter block and from the
  158. drives boot sector. Like number of data clusters, sectors per track,and 
  159. much more, like; "#Orphans" correspond to # of deltas. (Triangles) (See
  160. "Cluster Symbols" for more information). There is not much hope recovering
  161. orphaned files, but you can "Free" these clusters so the OS can use these
  162. clusters in the future. "#Out of Range" is the number of FAT entries that
  163. had illegal values. "# Fragmented" is the number of fragmented files.
  164. "# Errors" the number of disk errors encountered on the drive. "Condition"
  165. is a rating of drives condition based on the # of Errors encountered.
  166.  
  167. WARNINGS AND SHORT VIEW:
  168.  
  169. These options allow you to turn most alert warnings on or off, and to
  170. toggle between the normal or extended cluster viewing modes, respectively.
  171.  
  172. THE "CLUSTER" MENU OPTIONS:
  173.  
  174. These commands will work on presently selected clusters. In addition move
  175. will ask for a destination cluster as well. So select the clusters in which
  176. you want the operation performed then, click on the operation.
  177.  
  178. Move, will allow you to move a group of selected clusters to a desired
  179. destination.  While the selected clusters may be from many different areas
  180. of your drive, they will be written one after another starting at the
  181. destination cluster.
  182.  
  183. Reserve, will allow you to mark selected clusters so the OS won't use them.
  184. This can be use to reserve a cluster or two after your folders, in the
  185. event that the OS expands the amount of clusters used, due to the addition
  186. of files, you can easily move these fragmented files back together.
  187.  
  188. Free, (erase FAT entries of selected clusters) can be used to free up
  189. reserved clusters and also any orphaned (delta) clusters.
  190.  
  191. Zero, is a great little option that will allow you to 'zero' the sectors of
  192. a cluster, or a file (or two) or even the whole drive! This option does NOT
  193. erase the FAT entries of these clusters. If you've zero'ed out a file to
  194. truely 'erase' it, you then should delete it from the desktop like normal.
  195. Be warned however, that there will be NO hope of recovering the file.
  196.  
  197. OPTIMIZING DIRECTORIES: (^H)
  198.  
  199. Will optimize your directories. Specifically what this option does is
  200. complete remove deleted entries from your directories, this can save space
  201. and time, if for example you had 300 fonts in a folder and deleted all but
  202. 8 of them, the system would still use 19 clusters, where you only need one!
  203. This function is only available to registered users.
  204.  
  205. CONSOLIDATING CLUSTERS: (^K)
  206.  
  207. This option groups all clusters that contain data together, so all empty
  208. clusters appear towards the bottom of the drive. This is also done when
  209. you choose to defragment your drive automatically.  It can be a powerful
  210. tool for those who wish to defragment their drives manually as well.
  211. This function is only available to registered users.
  212.  
  213. AUTOMATIC DEFRAGMENTATION: (^D)
  214.  
  215. Yes! It is finally here, but there is a catch... in order to use this
  216. function to automatically defragment your drives you have to register.
  217. Registration information is provided at the start of this manual and in the
  218. credits dialog of the program.
  219.  
  220. ODDS AND ENDS:
  221.  
  222. ~ If you have moved files around or defragmented a drive or partition you
  223. need to press the [Esc] key back at the desktop, this will refresh the
  224. directories. Make sure the drives window is open and active (Topped).
  225. Since the OS caches folder info (40 folder limit?) There is still a problem
  226. with the desktop looking for a subdirectory in its old (prior to defragging
  227. or moving) location. Because of this three things can happen as a result.
  228. A) When bringing up a subdirectory you'll get garabage, B) the desktop will
  229. belly-flop (reboot and all should be well), or C) you'll get lucky and
  230. everything will work fine.
  231.  
  232. ~ I am getting some weird results when using EdHak with Blitzschnell.  The
  233. problems seem to change from version to version (of Blitzschnell) so
  234. chances are really good that I am doing/not doing something.  I hope to
  235. have this problem fixed before to long.
  236.  
  237. QUICK EXAMPLE OF MANUAL METHODS:
  238. I run Blitzschnell then "Select" Drive H. Choose menu items "Warnings" and
  239. "Short View" to turn warnings off and select the extended view mode. Next I
  240. select "Map". Studying the map I see that "AAF" is broken into two parts.
  241. "AAF" occupies clusters 2-10 and 20-30, "AAG" occupies clusters 11-19. I
  242. hold down the right mouse button on the first "AAF" cluster, the info line
  243. tells me that the file is "BLITZ_HD.PRG" I repeat this procedure for "AAG"
  244. the info line tells me that "AAG" is file "BLITZ.HR.RSC". I select "Trace"
  245. and choose "BLITZ_HR.RSC" double clicking on it, the program highlights
  246. clusters 11-19 (those that belong to "BLITZ_HR.RSC"). I select "Move" and
  247. the info line tells me to left click on a destination cluster or right
  248. click to cancel. Choosing a group of >=9 empty clusters I click the left
  249. mouse button. The Hard drive busy lights comes on. After a short time
  250. the screen is redraw and my "AAG" clusters are now in thier new location.
  251. Moving the pointer to cluster 20 I hold down the left mouse button.
  252. Keeping the mouse button down I drag the mouse across to highlight
  253. clusters 20-30. I again select "Move" and select cluster 11 as the
  254. destination. The drives spins the screen is redrawn and now all my "AAF"
  255. clusters "BLITZ_HD.PRG" are grouped together (clusters 2-21) (the file is
  256. no longer fragmented!) Again I trace "BLITZ_HR.RSC" which selects the "AAG"
  257. clusters. Which following the above procedure I "Move" starting at
  258. destination cluster 22. The two files are completely defragmented and
  259. there are no blank spaces. (Clusters 2-21 contain "BLITZ_HD.PRG" and
  260. clusters 22-30 contain "BLITZ_HR.RSC") I have just successfully
  261. defragmented my "H" partition. Scrolling through the rest of the clusters
  262. I notice that cluster 4480-4485 have deltas in them (triangles) Obviously
  263. the OS didn't zero out all of a deleted files' FAT entries. I highlight
  264. clusters 4480-4485 as described above. Selecting "Free" from the menu the
  265. drive lights up for a second. The screen is redrawn and I now see that
  266. clusters 4480-4485 are empty. (now available to the OS to save files to!)
  267. Thus I have successfully restored my "H" partition to tip-top shape.
  268.  
  269. UPDATE HISTORY:
  270.  
  271. Enhancements and changes shown in these updates are accounted for in the
  272. manual already. This is to avoid the conflict of learning something then
  273. finding out that it has been changed or no longer exists. For example; the
  274. resource has been modified by the removal of two dialogs, hence you will
  275. note that the "Registration" and "Titles" menu options are no longer
  276. addressed in the 'manual' section of this text.
  277.  
  278. 07/30/92 Version 1.0
  279. - Version 1.0 released as SHAREware.
  280.  
  281. 08/08/92 Version 1.1
  282. - Internal FAT range checking implemented to avoid seek errors.
  283. - Spelling mistake corrected in resource.
  284. - Alerts changed from all caps.
  285. - Fixed code that improperly reported boot sector values.
  286. - ^C FAT comparison routine implemented.
  287.  
  288. 08/09/92 Version 1.11
  289. - Fixed bug in "Trace" routine.
  290. - Reworked routine for setting new display cluster.
  291. - ^8 Null FAT group selection implemented.
  292.  
  293. 08/15/92 Version 1.2 (Not released)
  294. - Cleaned up FAT comparison output.
  295. - Added new error alerts, revamped error trapping in loading buffers.
  296. - Added code to handle FAT and Directory loads more like the desktop.
  297.  
  298. 08/31/92 Version 1.22
  299. - Optimized code by 2K.
  300. - Fixed bug in routine for setting new display cluster.
  301. - Added code for making multiply cluster selections without redraws.
  302. - "EOF" added to "NEXT" info display.
  303. - Updated manual.
  304.  
  305. 09/07/92 Version 1.23 (Glendale show)
  306. - Fixed bug that didn't determine proper end of buffer address.
  307. - Fixed bug that failed to load in multiple cluster subdirectories.
  308. - Added button text for "Disk Write Protected" alert which I forgot.
  309.  
  310. 10/07/92 Version 1.33
  311. - Made medium res. clusters more readable.
  312. - Added color to medium res. resource.
  313. - Fixed overlap in medium resolutions file selector.
  314. - Set registration fee to $10.
  315.  
  316. 10/13/92 Version 1.40
  317. - Fixed ADDA.W glitch that wouldn't carry addr regester to high word.
  318. - Fixed bug that prevented subdirectories from being saved.
  319.  
  320. 10/27/92 Version 1.40-U
  321. - Unfixed part of subdirectory save bug, it caused new problems.
  322. - Changed update and bug fix notice policy.
  323. - Completely rewrote manual.
  324. - Enabled Acc. slots. (See earlier warnings!)
  325.  
  326. 11/27/92 Versions 1.44 (registered and unregistered)
  327. - Removed "Registration" and "Titles" options.
  328. - Removed above dialogs from both resource files.
  329. - Added code to show mouse "bee" when drives are accessed.
  330. - Added code to disable "Trace" from clearing previously selected clusters.
  331. - Rewrote "Info" code, expanded amount of info displayed.
  332. - Added code for block selection/deselection of clusters.
  333. - No longer will act on events intended for such things as accessories.
  334. - Added ^H option, to clean up directories by zeroing out deleted entries.
  335. - "Move"-ing files no longer resets display cluster to two.
  336. - Now forces GEMDOS to update its buffers, no resets are necessary.
  337. - Added ^K "Consolidation" option.
  338. - Added ^D "Auto Defragmentation" option.
  339. - ^8 Null FAT group selection option removed, because of "Block" selection.
  340. - Corrected erroneous zip-code in manuals registration address. (Oops!)
  341. - Fixed Glitch that caused desktop to lock up after exiting.
  342.  
  343. *** To prevent accidental data loss frequent backups are recommended ***
  344.  
  345. ACKNOWLEDGEMENTS:
  346.  
  347. My humble thanks to each and every person who took the time to register
  348. their version of this software.  Your support is greatly appreciated and
  349. sorely needed. I look forward to continuing my efforts to improve this
  350. software to better suit your needs.  Thank You.
  351.  
  352. I want to thank my fiancee, for her patience, understanding, and sage
  353. advice to "...just sleep on it." which more then once kept me from
  354. resorting to my "last ditch" debugging method. (Eating the source code)
  355.  
  356. Thanks to Craig Harvey of Clear Thinking(tm) for his comments and
  357. suggestions, loaning me his valuable equipment and above all, for
  358. listening to my babbling.
  359.  
  360.                               Thank You All
  361.                            Erin Matthew Monaco
  362.